from enum import Enum


class MsgTopicEnum(Enum):

    CTAF_TEST_TOPIC = "ctaf.test"

    DEFAULT_TOPIC = ""


def get_msg_topic_enum_by_value(value: str)-> MsgTopicEnum | None:
    for item in MsgTopicEnum:
        if item.value == value:
            return item
    return None